package junittest;


import static org.junit.Assert.assertNotNull;

import org.junit.Before;
import org.junit.Test;

import colibridb.core.Database;
import colibridb.core.Table;



public class TableTests {

	Database db = null;

	@Before
	public void setUp() throws Exception {
		db = new Database("testdb");
	}

	@Test
	public void testCreateNewTable() {
		Table table = null;
		try {
			table = db.createTable("Stammdaten");
		} catch (Exception e) {
			// TODO Auto-generated catch block
		}
		assertNotNull(table);
	}
	
	@Test(expected=Exception.class)
	public void testCreateNewTableFailed() throws Exception {
		db.createTable("");
	}
}
